package com.group5.baseline.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author thinknovo
 * @version 1.0
 * @description User.java
 */
@ApiModel(value = "User",description = "用户基础资料的实体")
public class User implements Serializable {   // 参数接收模型，名称自定义，通常符合接收规则即可
    @ApiModelProperty(name = "username",notes = "用户名",dataType = "String",required = true)
    private String username;
    @ApiModelProperty(name = "password",notes = "密码",dataType = "String",required = true)
    private String password;


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
